﻿/***************************************************
 * File name: Item.cs 
 * Author: Team A
 * Change Log: Please see SVN repository: http://test-project-drew1.googlecode.com/svn/trunk/
 * Date: December 2013
 * Description: See <summary> tab below
 * *************************************************/

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace WSCeCommerce.Domain
{

    /// <summary>
    /// Represents an item for sale.
    /// </summary>
    public class Item
    {
        /// <summary>
        /// Default Constructor
        /// </summary>
        public Item()
        {
            Categories = new List<Category>();
        }

        /// <summary>
        /// Key item id
        /// </summary>
        [Key]
        public int ItemId
        {
            get; set;
        }

        /// <summary>
        /// Name of the item
        /// </summary>
        public String Name
        {
            get;set;
        }


        //Price of the item
        public Single Price
        {
            get;set;
        }

        /// <summary>
        /// List of categoriesd the item belongs to.
        /// </summary>
        /// 
        public virtual ICollection<Category> Categories { get; set; }


    
    }
}
